cmake_minimum_required(VERSION 2.8)
set(name face)
project(${name} C CXX)

list(APPEND CMAKE_CXX_FLAGS -std=c++11)

include_directories(
  ${CMAKE_CURRENT_LIST_DIR}
  ${OPENCV_ROOT}/include
)

link_directories(${OPENCV_ROOT}/lib)
list(APPEND FACE_LINKER_LIBS opencv_world${OPENCV_VERSION})

set(SRC_ROOT ${CMAKE_CURRENT_LIST_DIR}/src)
file(GLOB FACE_HDR ${SRC_ROOT}/*.h
                    ${SRC_ROOT}/*.hpp)
file(GLOB FACE_SRC ${SRC_ROOT}/*.cc
                    ${SRC_ROOT}/*.cpp)

add_executable(${name} ${FACE_SRC} ${FACE_HDR})
target_link_libraries(${name} ${FACE_LINKER_LIBS})